
local mt = ac.skill['巨力挥舞']
mt.art = [[ReplaceableTextures\PassiveButtons\PASBTNCleavingAttack.blp]]
mt.temp = '攻击触发'

function mt:on_init(hero)
    self:gc(hero:add('力量成长',self.data3))
end
function mt:on_run(hero,target)
    local damage = hero:get('力量') * self.data2 / 100
    hero:create_damage(target,damage,self)
end

local mt = ac.skill['神之力量']
mt.area = 600
function mt:on_cast_shot()
    local hero = self.owner
    hero:add_buff '神之力量'{data1 = self.data1,art = self.art}
end

local buff = ac.buff['神之力量']
buff.tip = [[这下牛逼了]]
buff.time = 25
buff.model1 = [[6e5229cb6fab54e0b856eac2355e0818.mdl]]
function buff:on_add()
    local hero = self.owner
    self:gc(hero:add_effect(self.model1))
    self:gc(hero:add('攻击加成',self.data1))
    self:gc(function()
        hero:set_color(0xffffffff)
    end)
end